package com.aliyun.messagemgt.dto.vo;

import com.aliyun.messagemgt.common.dto.base.PageQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author byp
 * @date 2020/7/31
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SmsTrendQueryVO", description = "短信统计概览查询入参")
@Data
@Accessors(chain = true)
public class SmsTrendQueryVO extends PageQuery {

    @ApiModelProperty(value = "消息源UUID", name = "msgSourceId")
    private String msgSourceId;
    @ApiModelProperty(value = "查询类型", name = "queryType", example = "1-近15天 2-近30天 3-近12个月 4-自定义日期")
    private Integer queryType;
    @ApiModelProperty(value = "自定义查询起始时间", example = "2020-01-01")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginTime;
    @ApiModelProperty(value = "自定义查询结束时间", example = "2020-01-05")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

}
